home *** CD-ROM | disk | FTP | other *** search
Wrap
<?xml version="1.0" encoding="EUC-JP"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="ja" xml:lang="ja"><head><!-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX This file is generated from xml source: DO NOT EDIT XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX --> <title>ÑφÑ░Ñ╒ÑíÑñÑδ - Apache HTTP Ñ╡í╝Ñ╨</title> <link href="./style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" /> <link href="./style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" /> <link href="./style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" /> <link href="./images/favicon.ico" rel="shortcut icon" /></head> <body id="manual-page"><div id="page-header"> <p class="menu"><a href="./mod/">ÑΓÑ╕Ñσí╝Ñδ</a> | <a href="./mod/directives.html">Ñ╟ÑúÑ∞Ñ»Ñ╞ÑúÑ╓</a> | <a href="./faq/">FAQ</a> | <a href="./glossary.html">═╤╕∞</a> | <a href="./sitemap.html">Ñ╡ÑñÑ╚Ñ▐Ñ├Ñ╫</a></p> <p class="apache">Apache HTTP Ñ╡í╝Ñ╨ Ñ╨í╝Ñ╕ÑτÑ≤ 2.2</p> <img alt="" src="./images/feather.gif" /></div> <div class="up"><a href="./"><img title="<-" alt="<-" src="./images/left.gif" /></a></div> <div id="path"> <a href="http://www.apache.org/">Apache</a> > <a href="http://httpd.apache.org/">HTTP Ñ╡í╝Ñ╨</a> > <a href="http://httpd.apache.org/docs/">Ñ╔Ñ¡ÑσÑßÑ≤Ñ╞í╝Ñ╖ÑτÑ≤</a> > <a href="./">Ñ╨í╝Ñ╕ÑτÑ≤ 2.2</a></div><div id="page-content"><div id="preamble"><h1>ÑφÑ░Ñ╒ÑíÑñÑδ</h1> <div class="toplang"> <p><span>Available Languages: </span><a href="./en/logs.html" hreflang="en" rel="alternate" title="English"> en </a> | <a href="./ja/logs.html" title="Japanese"> ja </a> | <a href="./ko/logs.html" hreflang="ko" rel="alternate" title="Korean"> ko </a></p> </div> <div class="outofdate">This translation may be out of date. Check the English version for recent changes.</div> <p>ѪѺÑ╓Ñ╡í╝Ñ╨ñ≥╕·▓╠┼¬ñ╦┤╔═²ñ╣ñδñ┐ñßñ╦ñ╧íóÑ╡í╝Ñ╨ñ╬│Φ╞░ñΣÑ╤Ñ╒Ñ⌐í╝Ñ▐Ñ≤Ñ╣íó ║ú╚»└╕ñ╖ñ╞ñññδñ½ñΓñ╖ñ∞ñ╩ññ╠Σ┬Ωñ╦┤╪ñ╣ñδÑ╒Ñúí╝Ñ╔Ñ╨Ñ├Ñ»ñ≥╞└ñδñ│ñ╚ñ¼╔¼═╫ñ╟ñ╣íú Apache HTTP Ñ╡í╝Ñ╨ñ╦ñ╧╚≤╛∩ñ╦╩±│τ┼¬ñ╟╜└╞≡ñ╩ÑφÑ«Ñ≤Ñ░╡í╟╜ñ¼ñóñΩñ▐ñ╣íú ñ│ñ╬╩╕╜±ñ╧ÑφÑ«Ñ≤Ñ░╡í╟╜ñ╬└▀─Ωñ╬╗┼╩²ñ╚íóÑφÑ░ñ╦▓┐ñ¼╜±ñ½ñ∞ñ╞ñññδñ½ñ≥ ═²▓≥ñ╣ñδñ┐ñßñ╬╩²╦íñ≥└Γ╠└ñ╖ñ▐ñ╣íú</p> </div> <div id="quickview"><ul id="toc"><li><img alt="" src="./images/down.gif" /> <a href="#security"> Ñ╗Ñ¡ÑσÑΩÑ╞Ñúñ╦┤╪ñ╣ñδ╖┘╣≡</a></li> <li><img alt="" src="./images/down.gif" /> <a href="#errorlog">Ñ¿ÑΘí╝ÑφÑ░</a></li> <li><img alt="" src="./images/down.gif" /> <a href="#accesslog">ÑóÑ»Ñ╗Ñ╣ÑφÑ░</a></li> <li><img alt="" src="./images/down.gif" /> <a href="#rotation">ÑφÑ░ñ╬╕≥┬╪</a></li> <li><img alt="" src="./images/down.gif" /> <a href="#piped">Ñ╤ÑñÑ╫╖╨═│ñ╬ÑφÑ░</a></li> <li><img alt="" src="./images/down.gif" /> <a href="#virtualhosts">Ñ╨í╝Ñ┴ÑπÑδÑ█Ñ╣Ñ╚</a></li> <li><img alt="" src="./images/down.gif" /> <a href="#other">┬╛ñ╬ÑφÑ░Ñ╒ÑíÑñÑδ</a></li> </ul></div> <div class="top"><a href="#page-header"><img alt="top" src="./images/up.gif" /></a></div> <div class="section"> <h2><a name="security" id="security"> Ñ╗Ñ¡ÑσÑΩÑ╞Ñúñ╦┤╪ñ╣ñδ╖┘╣≡</a></h2> <p>Apache ñ¼ÑφÑ░Ñ╒ÑíÑñÑδñ≥╜±ñññ╞ñññδÑ╟ÑúÑ∞Ñ»Ñ╚ÑΩñ╦╜±ñ¡╣■ñßñδ┐═ñ╧íó ñ█ñ▄│╬╝┬ñ╦Ñ╡í╝Ñ╨ñ¼╡»╞░ñ╡ñ∞ñ┐ uid ñ╪ñ╬ÑóÑ»Ñ╗Ñ╣ñ≥╝Ωñ╦╞■ñ∞ñδñ│ñ╚ñ¼ñ╟ñ¡ñ▐ñ╣íú ñ╜ñ╖ñ╞íóñ╜ñ∞ñ╧─╠╛∩ñ╧ root ѵí╝Ñ╢ñ╟ñ╣íú ñ┴ñπñ≤ñ╚╖δ▓╠ñ≥╣═ñ¿ñδñ│ñ╚ñ╩ñ»íóñ╜ñ╬Ñ╟ÑúÑ∞Ñ»Ñ╚ÑΩñ╪ñ╬ ╜±ñ¡╣■ñ▀╕ó╕┬ñ≥═┐ñ¿<em>ñ╩ññ</em>ñ╟ñ»ñ└ñ╡ññíú╛▄ñ╖ñ»ñ╧ <a href="misc/security_tips.html">Ñ╗Ñ¡ÑσÑΩÑ╞Ñúñ╬ñ│ñ─</a>ñ╬╩╕╜±ñ≥ ╞╔ñ≤ñ╟ñ»ñ└ñ╡ññíú</p> <p>▓├ñ¿ñ╞íóÑφÑ░Ñ╒ÑíÑñÑδñ╦ñ╧Ñ»ÑΘÑñÑóÑ≤Ñ╚ñ½ñΘñ╬╛≡╩≤ñ¼ñ╜ñ╬ñ▐ñ▐íó Ñ¿Ñ╣Ñ▒í╝Ñ╫ñ╡ñ∞ñδñ│ñ╚ñ╩ñ»╜±ñ½ñ∞ñ╞ñññ▐ñ╣íúñ╟ñ╣ñ½ñΘíó░¡░╒ñ╬ñóñδ Ñ»ÑΘÑñÑóÑ≤Ñ╚ñ¼ÑφÑ░Ñ╒ÑíÑñÑδñ╦└⌐╕µ╩╕╗·ñ≥┴▐╞■ñ╣ñδñ│ñ╚ñ¼ñ╟ñ¡ñ▐ñ╣íú └╕ñ╬ÑφÑ░ñ≥░╖ñªñ╚ñ¡ñ╧├φ░╒ñ╖ñ╞ñ»ñ└ñ╡ññíú</p> </div><div class="top"><a href="#page-header"><img alt="top" src="./images/up.gif" /></a></div> <div class="section"> <h2><a name="errorlog" id="errorlog">Ñ¿ÑΘí╝ÑφÑ░</a></h2> <table class="related"><tr><th>┤╪╧óÑΓÑ╕Ñσí╝Ñδ</th><th>┤╪╧óÑ╟ÑúÑ∞Ñ»Ñ╞ÑúÑ╓</th></tr><tr><td /><td><ul><li><code class="directive"><a href="./mod/core.html#errorlog">ErrorLog</a></code></li><li><code class="directive"><a href="./mod/core.html#loglevel">LogLevel</a></code></li></ul></td></tr></table> <p><code class="directive"><a href="./mod/core.html#errorlog">ErrorLog</a></code> Ñ╟ÑúÑ∞Ñ»Ñ╞ÑúÑ╓ñ╦ñΦñΩ ╠╛┴░ñ╚╛∞╜Ωñ¼╖Φñ▐ñδÑ╡í╝Ñ╨ñ╬Ñ¿ÑΘí╝ÑφÑ░ñ╧íó░∞╚╓╜┼═╫ñ╩ÑφÑ░Ñ╒ÑíÑñÑδñ╟ñ╣íú Apache ñ╬┐╟├╟╛≡╩≤ñ╧ñ│ñ│ñ╦┴≈ñΘñ∞íóÑΩѻѿÑ╣Ñ╚ñ≥╜Φ═²ñ╖ñ╞ñññδñ╚ñ¡ñ╦ ╚»└╕ñ╖ñ┐Ñ¿ÑΘí╝ñ╧ñ╣ñ┘ñ╞ñ│ñ│ñ╦╡¡╧┐ñ╡ñ∞ñ▐ñ╣íúÑ╡í╝Ñ╨ñ≥╡»╞░ñ╖ñ┐ñ╚ñ¡ñΣíó Ñ╡í╝Ñ╨ñ╬╞░║εñ╦╠Σ┬Ωñ¼╡»ñ│ñ├ñ┐ñ╚ñ¡ñ╧íó░∞╚╓║╟╜Θñ╦─┤ñ┘ñδñ┘ñ¡ ñ╚ñ│ñφñ╟ñ╣íú┤╓░πñññ╬╛▄║┘ñΣ╜ñ└╡╩²╦íñ¼ñ╜ñ│ñ╦╜±ñ½ñ∞ñ╞ñññδñ│ñ╚ñ¼ ñΦñ»ñóñΩñ▐ñ╣íú</p> <p>Ñ¿ÑΘí╝ÑφÑ░ñ╧╔ß─╠ñ╧Ñ╒ÑíÑñÑδñ╦╜±ñ½ñ∞ñ▐ñ╣ (─╠╛∩ unix Ñ╖Ñ╣Ñ╞Ñαñ╟ñ╧ <code>error_log</code>íóWindows ñ╚ OS/2 ñ╟ñ╧ <code>error.log</code>)íú Unix Ñ╖Ñ╣Ñ╞Ñαñ╟ñ╧Ñ¿ÑΘí╝ñ≥ <code>syslog</code> ñΣ <a href="#piped">Ñ╤ÑñÑ╫ñ╟Ñ╫ÑφÑ░ÑΘÑαñ╦┴≈ñδ</a> ñ│ñ╚ñ¼ñ╟ñ¡ñ▐ñ╣íú</p> <p>Ñ¿ÑΘí╝ÑφÑ░ñ╬╜±╝░ñ╧╚µ│╙┼¬╝½═│┼┘ñ╬╣ΓñññΓñ╬ñ╟íó└Γ╠└┼¬ñ╦╜±ñ½ñ∞ñ╞ñññ▐ñ╣íú ñ┐ñ└ñ╖íóñññ»ñ─ñ½ñ╬╛≡╩≤ñ╧ñ█ñ╚ñ≤ñ╔ñ╬Ñ¿ÑΘí╝ÑφÑ░ñ╬Ñ¿Ñ≤Ñ╚ÑΩñ╦ñóñΩñ▐ñ╣íú ╬πñ¿ñ╨íó┬σ╔╜┼¬ñ╩ñΓñ╬ñ╦╝íñ╬ñΦñªñ╩ÑßÑ├Ñ╗í╝Ñ╕ñ¼ñóñΩñ▐ñ╣íú</p> <div class="example"><p><code> [Wed Oct 11 14:32:52 2000] [error] [client 127.0.0.1] client denied by server configuration: /export/home/live/ap/htdocs/test </code></p></div> <p>ÑφÑ░Ñ¿Ñ≤Ñ╚ÑΩñ╬║╟╜Θñ╬╣α╠▄ñ╧ÑßÑ├Ñ╗í╝Ñ╕ñ╬╞ⁿ╔╒ñ╚╗■╣∩ñ╟ñ╣íú ╞≤ñ─ñßñ╬╣α╠▄ñ╧╩≤╣≡ñ╡ñ∞ñ╞ñññδÑ¿ÑΘí╝ñ╬╜┼═╫┼┘ñ╟ñ╣íú <code class="directive"><a href="./mod/core.html#loglevel">LogLevel</a></code> ñ╟╜┼═╫┼┘ñ╬Ñ∞Ñ┘Ñδñ≥ └⌐╕┬ñ╣ñδñ│ñ╚ñ╦ñΦñΩÑ¿ÑΘí╝ÑφÑ░ñ╦┴≈ñΘñ∞ñδÑ¿ÑΘí╝ñ╬╝∩╬αñ≥└⌐╕µñ╣ñδñ│ñ╚ñ¼ ñ╟ñ¡ñ▐ñ╣íú╗░ñ─╠▄ñ╬╣α╠▄ñ╧Ñ¿ÑΘí╝ñ≥╚»└╕ñ╡ñ╗ñ┐Ñ»ÑΘÑñÑóÑ≤Ñ╚ñ╬ IP ÑóÑ╔Ñ∞Ñ╣ ñ╟ñ╣íú╗─ñΩñ╧ÑßÑ├Ñ╗í╝Ñ╕ñ╟íóñ│ñ╬╛∞╣τñ╧Ñ╡í╝Ñ╨ñ¼Ñ»ÑΘÑñÑóÑ≤Ñ╚ñ╬ÑóÑ»Ñ╗Ñ╣ñ≥ ╡±╚▌ñ╣ñδñΦñªñ╦└▀─Ωñ╡ñ∞ñ╞ñññδíóñ╚ñññªñ│ñ╚ñ≥╝¿ñ╖ñ╞ñññ▐ñ╣íú Ñ╡í╝Ñ╨ñ╧ÑΩѻѿÑ╣Ñ╚ñ╡ñ∞ñ┐╩╕╜±ñ╬ (ѪѺÑ╓ñ╬Ñ╤Ñ╣ñ╟ñ╧ñ╩ñ») Ñ╒ÑíÑñÑδÑ╖Ñ╣Ñ╞Ñαñ╬ Ñ╤Ñ╣ñ≥╩≤╣≡ñ╖ñ▐ñ╣íú</p> <p>╚≤╛∩ñ╦╣¡╚╧░╧ñ╬ÑßÑ├Ñ╗í╝Ñ╕ñ¼Ñ¿ÑΘí╝ÑφÑ░ñ╦╕╜ñ∞ñ▐ñ╣íúñ┐ñññ╞ñññ╬ñΓñ╬ñ╧ ╛σñ╬╬πñ╬ñΦñªñ╩┤╢ñ╕ñ╟ñ╣íúÑ¿ÑΘí╝ÑφÑ░ñ╦ñ╧ CGI Ñ╣Ñ»ÑΩÑ╫Ñ╚ñ╬Ñ╟Ñ╨Ñ├Ñ░ ╜╨╬╧ñΓ╜±ñ½ñ∞ñ▐ñ╣íúCGI Ñ╣Ñ»ÑΩÑ╫Ñ╚ñ¼ <code>stderr</code> ñ╦╜±ñññ┐ ñ╣ñ┘ñ╞ñ╬╛≡╩≤ñ╧─╛└▄Ñ¿ÑΘí╝ÑφÑ░ñ╦Ñ│Ñ╘í╝ñ╡ñ∞ñ▐ñ╣íú</p> <p>╛≡╩≤ñ≥─╔▓├ñ╖ñ┐ñΩ║∩╜ⁿñ╖ñ┐ñΩñ╖ñ╞Ñ¿ÑΘí╝ÑφÑ░ñ≥ѽÑ╣Ñ┐Ñ▐ÑñÑ║ñ╣ñδñ│ñ╚ñ╧ ñ╟ñ¡ñ▐ñ╗ñ≤íúñ╖ñ½ñ╖íóÑΩѻѿÑ╣Ñ╚ñ╦┬╨ñ╣ñδÑ¿ÑΘí╝ÑφÑ░ñ╬Ñ¿Ñ≤Ñ╚ÑΩñ╧íó ┬╨▒■ñ╣ñδÑ¿Ñ≤Ñ╚ÑΩñ¼<a href="#accesslog">ÑóÑ»Ñ╗Ñ╣ÑφÑ░</a>ñ╦ñóñΩñ▐ñ╣íú ╬πñ¿ñ╨íó╛σñ╬╬πñ╬Ñ¿Ñ≤Ñ╚ÑΩñ╧ÑóÑ»Ñ╗Ñ╣ÑφÑ░ñ╬Ñ╣Ñ╞í╝Ñ┐Ñ╣Ñ│í╝Ñ╔ 403 ñ╬ Ñ¿Ñ≤Ñ╚ÑΩñ╦┬╨▒■ñ╖ñ▐ñ╣íúÑóÑ»Ñ╗Ñ╣ÑφÑ░ñ╧ѽÑ╣Ñ┐Ñ▐ÑñÑ║▓─╟╜ñ╟ñ╣ñ╬ñ╟íó ñ╜ñ┴ñΘñ≥╗╚ñªñ│ñ╚ñ╦ñΦñΩÑ¿ÑΘí╝ñ╬╛⌡╢╖ñ╦┤╪ñ╣ñδ╛≡╩≤ñ≥ñΦñΩ┬┐ñ» ╝Ωñ╦╞■ñ∞ñδñ│ñ╚ñ¼ñ╟ñ¡ñ▐ñ╣íú</p> <p>Ñ╞Ñ╣Ñ╚ñ╬║╟├µñ╧íó╠Σ┬Ωñ¼╚»└╕ñ╖ñ╞ñññδñ½ñ╔ñªñ½ñ≥╕½ñδñ┐ñßñ╦íó ╛∩ñ╦Ñ¿ÑΘí╝ÑφÑ░ñ≥┤╞╗δñ╣ñδñ╬ñ¼╠≥ñ╦╬⌐ñ─╛∞╣τñ¼ñΦñ»ñóñΩñ▐ñ╣íú Unix Ñ╖Ñ╣Ñ╞Ñαñ╟ñ╧íó╝íñ╬ñΓñ╬ñ≥╗╚ñªñ│ñ╚ñ¼ñ╟ñ¡ñ▐ñ╣íú</p> <div class="example"><p><code> tail -f error_log </code></p></div> </div><div class="top"><a href="#page-header"><img alt="top" src="./images/up.gif" /></a></div> <div class="section"> <h2><a name="accesslog" id="accesslog">ÑóÑ»Ñ╗Ñ╣ÑφÑ░</a></h2> <table class="related"><tr><th>┤╪╧óÑΓÑ╕Ñσí╝Ñδ</th><th>┤╪╧óÑ╟ÑúÑ∞Ñ»Ñ╞ÑúÑ╓</th></tr><tr><td><ul><li><code class="module"><a href="./mod/mod_log_config.html">mod_log_config</a></code></li><li><code class="module"><a href="./mod/mod_setenvif.html">mod_setenvif</a></code></li></ul></td><td><ul><li><code class="directive"><a href="./mod/mod_log_config.html#customlog">CustomLog</a></code></li><li><code class="directive"><a href="./mod/mod_log_config.html#logformat">LogFormat</a></code></li><li><code class="directive"><a href="./mod/mod_setenvif.html#setenvif">SetEnvIf</a></code></li></ul></td></tr></table> <p>Ñ╡í╝Ñ╨ÑóÑ»Ñ╗Ñ╣ÑφÑ░ñ╧Ñ╡í╝Ñ╨ñ¼╜Φ═²ñ≥ñ╖ñ┐ñ╣ñ┘ñ╞ñ╬ÑΩѻѿÑ╣Ñ╚ñ≥ ╡¡╧┐ñ╖ñ▐ñ╣íúÑóÑ»Ñ╗Ñ╣ÑφÑ░ñ╬╛∞╜Ωñ╚╞Γ═╞ñ╧ <code class="directive"><a href="./mod/mod_log_config.html#customlog">CustomLog</a></code> Ñ╟ÑúÑ∞Ñ»Ñ╞ÑúÑ╓ñ╦ñΦñΩ╖Φñ▐ñΩñ▐ñ╣íúÑφÑ░ñ╬╞Γ═╞ñ╬┴¬┬≥ñ≥┤╩╖Θñ╦ñ╣ñδñ┐ñßñ╦ <code class="directive"><a href="./mod/mod_log_config.html#logformat">LogFormat</a></code> Ñ╟ÑúÑ∞Ñ»Ñ╞ÑúÑ╓ñ≥╗╚═╤ñ╣ñδñ│ñ╚ñ¼ñ╟ñ¡ñ▐ñ╣íúñ│ñ╬Ñ╗Ñ»Ñ╖ÑτÑ≤ñ╧ÑóÑ»Ñ╗Ñ╣ÑφÑ░ñ╦ ╛≡╩≤ñ≥╡¡╧┐ñ╣ñδñ┐ñßñ╬Ñ╡í╝Ñ╨ñ╬└▀─Ω╩²╦íñ≥└Γ╠└ñ╖ñ▐ñ╣íú</p> <p>ñΓñ┴ñφñ≤íóÑóÑ»Ñ╗Ñ╣ÑφÑ░ñ╦╛≡╩≤ñ≥├▀└╤ñ╣ñδñ│ñ╚ñ╧ÑφÑ░┤╔═²ñ╬ ╗╧ñ▐ñΩñ╦▓ßñ«ñ▐ñ╗ñ≤íú╝íñ╬├╩│¼ñ╧═¡═╤ñ╩┼²╖╫ñ≥╝Φñδñ┐ñßñ╦ñ│ñ╬╛≡╩≤ñ≥ ▓≥└╧ñ╣ñδñ│ñ╚ñ╟ñ╣íú░∞╚╠┼¬ñ╩ÑφÑ░▓≥└╧ñ╧ñ│ñ╬╩╕╜±ñ╬╚╧░╧│░ñ╟íó ѪѺÑ╓Ñ╡í╝Ñ╨╝½┐╚ñ╬╗┼╗÷ñ╚ñññªñ∩ñ▒ñ╟ñΓñóñΩñ▐ñ╗ñ≤íúñ│ñ╬╧├ñΣíó ÑφÑ░▓≥└╧ñ≥╣╘ñ╩ñªÑóÑ╫ÑΩÑ▒í╝Ñ╖ÑτÑ≤ñ╬╛≡╩≤ñ≥╞└ñδñ╦ñ╧íó<a href="http://dmoz.org/Computers/Software/Internet/Site_Management/Log_analysis/"> Open Directory</a> ñΣ <a href="http://dir.yahoo.com/Computers_and_Internet/Software/Internet/World_Wide_Web/Servers/Log_Analysis_Tools/"> Yahoo</a> ñ≥─┤ñ┘ñ╞ñ»ñ└ñ╡ññíú</p> <p>ñññφñ≤ñ╩Ñ╨í╝Ñ╕ÑτÑ≤ñ╬ Apache httpd ñ¼ mod_log_config, mod_log_agent, <code>TransferLog</code> Ñ╟ÑúÑ∞Ñ»Ñ╞ÑúÑ╓ñ╚ñññ├ñ┐íó ┬╛ñ╬ÑΓÑ╕Ñσí╝ÑδñΣÑ╟ÑúÑ∞Ñ»Ñ╞ÑúÑ╓ñ≥╗╚ñ├ñ╞ÑóÑ»Ñ╗Ñ╣ñ╬ÑφÑ«Ñ≤Ñ░ñ≥ └⌐╕µñ╖ñ╞ñ¡ñ▐ñ╖ñ┐íú║úñ╟ñ╧íó<code class="directive"><a href="./mod/mod_log_config.html#customlog">CustomLog</a></code> ñ¼ñ╣ñ┘ñ╞ñ╬╕┼ññ Ñ╟ÑúÑ∞Ñ»Ñ╞ÑúÑ╓ñ╬╡í╟╜ñ≥┤▐ñαñΦñªñ╦ñ╩ñ├ñ╞ñññ▐ñ╣íú</p> <p>ÑóÑ»Ñ╗Ñ╣ÑφÑ░ñ╬╜±╝░ñ╧╚≤╛∩ñ╦╜└╞≡ñ╩└▀─Ωñ¼▓─╟╜ñ╟ñ╣íú ╜±╝░ñ╧ C ñ╬ printf(1) Ñ╒Ñ⌐í╝Ñ▐Ñ├Ñ╚╩╕╗·╬≤ñ╦╚≤╛∩ñ╦╗≈ñ┐ <code class="directive"><a href="./mod/mod_log_config.html#Ñ╒Ñ⌐í╝Ñ▐Ñ├Ñ╚╩╕╗·╬≤">Ñ╒Ñ⌐í╝Ñ▐Ñ├Ñ╚╩╕╗·╬≤</a></code> ñ╦ñΦñΩ╗╪─Ωñ╡ñ∞ñ▐ñ╣íúñññ»ñ─ñ½╝íñ╬└ßñ╟╬πñ≥╝¿ñ╖ñ▐ñ╣íú Ñ╒Ñ⌐í╝Ñ▐Ñ├Ñ╚╩╕╗·╬≤ñ╦╗╚═╤ñ╟ñ¡ñδ╞Γ═╞ñ╬░∞═≈ñ╧ <a href="mod/mod_log_config.html">mod_log_config ñ╬╩╕╜±</a> ñ≥╕½ñ╞ñ»ñ└ñ╡ññíú</p> <h3><a name="common" id="common">Common Log Format</a></h3> <p>ÑóÑ»Ñ╗Ñ╣ÑφÑ░ñ╬ñΦñ»ñóñδ└▀─Ωñ╦░╩▓╝ñ╬ñΓñ╬ñ¼ñóñΩñ▐ñ╣íú</p> <div class="example"><p><code> LogFormat "%h %l %u %t \"%r\" %>s %b" common<br /> CustomLog logs/access_log common </code></p></div> <p>ñ│ñ∞ñ╧íó<em>Ñ╦Ñ├Ñ»Ñ═í╝Ñα</em> <code>common</code> ñ≥─Ω╡┴ñ╖íó ÑφÑ░ñ╬Ñ╒Ñ⌐í╝Ñ▐Ñ├Ñ╚╩╕╗·╬≤ñ╬░∞ñ─ñ╚┤╪╧ó╔╒ñ▒ñ▐ñ╣íúÑ╒Ñ⌐í╝Ñ▐Ñ├Ñ╚╩╕╗·╬≤ñ╧ Ñ╤í╝Ñ╗Ñ≤Ñ╚Ñ╟ÑúÑ∞Ñ»Ñ╞ÑúÑ╓ñ½ñΘñ╩ñΩíóñ╜ñ∞ñ╛ñ∞ñ╬Ñ╤í╝Ñ╗Ñ≤Ñ╚Ñ╟ÑúÑ∞Ñ»Ñ╞ÑúÑ╓ñ╧ Ñ╡í╝Ñ╨ñ╦ñ╔ñ╬╛≡╩≤ñ≥ÑφÑ«Ñ≤Ñ░ñ╣ñδñ½ñ≥╗╪╝¿ñ╖ñ▐ñ╣íúÑ╒Ñ⌐í╝Ñ▐Ñ├Ñ╚╩╕╗·╬≤ñ╦ ╩╕╗·ñ≥ñ╜ñ╬ñ▐ñ▐╞■ñ∞ñδñ│ñ╚ñΓñ╟ñ¡íóñ╜ñ∞ñΘñ╧ÑφÑ░ñ╬╜╨╬╧ñ╦─╛└▄Ñ│Ñ╘í╝ñ╡ñ∞ñ▐ñ╣íú ñ╜ñ│ñ╦░·═╤╩╕╗· (<code>"</code>) ñ≥╜±ñ»ñ╚ñ¡ñ╧íó Ñ╒Ñ⌐í╝Ñ▐Ñ├Ñ╚╩╕╗·╬≤ñ╬║╟╕σñ╚ñ╖ñ╞▓≥╝ß ñ╡ñ∞ñδñ│ñ╚ñ≥╦╔ñ░ñ┐ñßñ╦Ñ╨Ñ├Ñ»Ñ╣ÑΘÑ├Ñ╖Ñσñ╟Ñ¿Ñ╣Ñ▒í╝Ñ╫ñ╣ñδ╔¼═╫ñ¼ñóñΩñ▐ñ╣íú Ñ╒Ñ⌐í╝Ñ▐Ñ├Ñ╚╩╕╗·╬≤ñ╦ñ╧▓■╣╘═╤ñ╬ "<code>\n</code>"íóÑ┐Ñ╓═╤ñ╬ "<code>\t</code>" ñ╚ñññª╞├╩╠ñ╩└⌐╕µ╩╕╗·ñΓ┤▐ñßñδñ│ñ╚ñ¼ñ╟ñ¡ñ▐ñ╣íú</p> <p><code class="directive"><a href="./mod/mod_log_config.html#customlog">CustomLog</a></code> Ñ╟ÑúÑ∞Ñ»Ñ╞ÑúÑ╓ñ╧ ┤√ñ╦─Ω╡┴ñ╡ñ∞ñ┐ <em>Ñ╦Ñ├Ñ»Ñ═í╝Ñα</em> ñ≥╗╚ñ├ñ╞┐╖ñ╖ññÑφÑ░Ñ╒ÑíÑñÑδñ≥└▀─Ωñ╖ñ▐ñ╣íú ÑóÑ»Ñ╗Ñ╣ÑφÑ░ñ╬Ñ╒ÑíÑñÑδ╠╛ñ╧Ñ╣ÑΘÑ├Ñ╖Ñσñ╟╗╧ñ▐ñΘñ╩ññ╕┬ñΩíó <code class="directive"><a href="./mod/core.html#serverroot">ServerRoot</a></code> ñ½ñΘñ╬┴Ω┬╨Ñ╤Ñ╣ñ╚ñ╖ñ╞ ░╖ñ∩ñ∞ñ▐ñ╣íú</p> <p>╛σñ╬└▀─Ωñ╧ Common Log Format (CLF) ñ╚╕╞ñ╨ñ∞ñδ╖┴╝░ñ╟ ÑφÑ░Ñ¿Ñ≤Ñ╚ÑΩñ≥╜±ñ¡ñ▐ñ╣íúñ│ñ╬╔╕╜αñ╬╖┴╝░ñ╧░█ñ╩ñδѪѺÑ╓Ñ╡í╝Ñ╨ñ╬┬┐ñ»ñ¼ └╕└«ñ╣ñδñ│ñ╚ñ¼ñ╟ñ¡íó┬┐ñ»ñ╬ÑφÑ░▓≥└╧Ñ╫ÑφÑ░ÑΘÑαñ¼╞╔ñ▀ñ│ñαñ│ñ╚ñ¼ñ╟ñ¡ñ▐ñ╣íú CLF ñ╦ñΦñΩ└╕└«ñ╡ñ∞ñ┐ÑφÑ░Ñ╒ÑíÑñÑδñ╬Ñ¿Ñ≤Ñ╚ÑΩñ╧░╩▓╝ñ╬ñΦñªñ╦ñ╩ñΩñ▐ñ╣:</p> <div class="example"><p><code> 127.0.0.1 - frank [10/Oct/2000:13:55:36 -0700] "GET /apache_pb.gif HTTP/1.0" 200 2326 </code></p></div> <p>ñ│ñ╬ÑφÑ░Ñ¿Ñ≤Ñ╚ÑΩñ╬ñ╜ñ∞ñ╛ñ∞ñ╬╔⌠╩¼ñ╬░╒╠úñ╧░╩▓╝ñ╟└Γ╠└ñ╖ñ▐ñ╣íú</p> <dl> <dt><code>127.0.0.1</code> (<code>%h</code>)</dt> <dd>ñ│ñ∞ñ╧Ñ╡í╝Ñ╨ñ╪ÑΩѻѿÑ╣Ñ╚ñ≥ñ╖ñ┐Ñ»ÑΘÑñÑóÑ≤Ñ╚ (ÑΩÑΓí╝Ñ╚Ñ█Ñ╣Ñ╚) ñ╬ IP ÑóÑ╔Ñ∞Ñ╣ñ╟ñ╣íú<code class="directive"><a href="./mod/core.html#hostnamelookups">HostnameLookups</a></code> ñ¼ <code>On</code> ñ╬╛∞╣τñ╧íóÑ╡í╝Ñ╨ñ╧Ñ█Ñ╣Ñ╚╠╛ñ≥─┤ñ┘ñ╞íó IP ÑóÑ╔Ñ∞Ñ╣ñ¼╜±ñ½ñ∞ñ╞ñññδñ╚ñ│ñφñ╦╡¡╧┐ñ╖ñ▐ñ╣íúñ╖ñ½ñ╖íóñ│ñ╬└▀─Ωñ╧ Ñ╡í╝Ñ╨ñ≥ñ½ñ╩ñΩ├┘ñ»ñ╣ñδñ╬ñ╟íóñóñ▐ñΩñ¬┤½ñßñ╟ñ¡ñ▐ñ╗ñ≤íú ñ╜ñªñ╟ñ╧ñ╩ñ»íó<code class="program"><a href="./programs/logresolve.html">logresolve</a></code> ñ╬ ñΦñªñ╩ÑφÑ░ñ╬╕σ╜Φ═²ñ≥╣╘ñ╩ñªÑ╫ÑφÑ░ÑΘÑαñ╟Ñ█Ñ╣Ñ╚╠╛ñ≥─┤ñ┘ñδñ╬ñ¼╬╔ñññ╟ñ╖ñτñªíú ñ│ñ│ñ╦╩≤╣≡ñ╡ñ∞ñδ IP ÑóÑ╔Ñ∞Ñ╣ñ╧╔¼ñ║ñ╖ñΓѵí╝Ñ╢ñ¼╗╚ñ├ñ╞ñññδÑ▐Ñ╖Ñ≤ñ╬ ñΓñ╬ñ╟ñóñδñ╚ñ╧╕┬ñΩñ▐ñ╗ñ≤íúѵí╝Ñ╢ñ╚Ñ╡í╝Ñ╨ñ╬┤╓ñ╦Ñ╫ÑφÑ¡Ñ╖Ñ╡í╝Ñ╨ñ¼ ñóñ∞ñ╨íóñ│ñ╬ÑóÑ╔Ñ∞Ñ╣ñ╧╕╡ñ╬Ñ▐Ñ╖Ñ≤ñ╬ñΓñ╬ñ╟ñ╧ñ╩ñ»íóÑ╫ÑφÑ¡Ñ╖ñ╬ ÑóÑ╔Ñ∞Ñ╣ñ╦ñ╩ñΩñ▐ñ╣íú</dd> <dt><code>-</code> (<code>%l</code>)</dt> <dd>╜╨╬╧├µñ╬í╓Ñ╧ÑñÑ╒Ñ≤í╫ñ╧═╫╡ßñ╡ñ∞ñ┐╛≡╩≤ñ¼╝Ωñ╦╞■ñΘñ╩ñ½ñ├ñ┐ñ╚ñññªñ│ñ╚ñ≥ ░╒╠úñ╖ñ▐ñ╣íúñ│ñ╬╛∞╣τíó╝Φ╞└ñ╟ñ¡ñ╩ñ½ñ├ñ┐╛≡╩≤ñ╧Ñ»ÑΘÑñÑóÑ≤Ñ╚ñ╬Ñ▐Ñ╖Ñ≤ñ╬ <code>identd</code> ñ╦ñΦñΩ╖Φñ▐ñδ RFC 1413 ñ╬Ñ»ÑΘÑñÑóÑ≤Ñ╚ñ╬ ÑóÑñÑ╟Ñ≤Ñ╞ÑúÑ╞Ñúñ╟ñ╣íúñ│ñ╬╛≡╩≤ñ╧ñóñ▐ñΩ┐«═╤ñ╣ñδñ│ñ╚ñ¼ñ╟ñ¡ñ║íó ñ╖ñ├ñ½ñΩñ╚┤╔═²ñ╡ñ∞ñ┐╞Γ╔⌠Ñ═Ñ├Ñ╚Ñ∩í╝Ñ»ñ≥╜ⁿñññ╞ñ╧╗╚ñªñ┘ñ¡ñ╟ñ╧ñóñΩñ▐ñ╗ñ≤íú Apache ñ╧ <code class="directive"><a href="./mod/core.html#identitycheck">IdentityCheck</a></code> ñ¼ <code>On</code> ñ╦ñ╩ñ├ñ╞ñññ╩ññ╕┬ñΩíóñ│ñ╬╛≡╩≤ñ≥╞└ñΦñªñ╚ñ╣ñΘñ╖ñ▐ñ╗ñ≤íú</dd> <dt><code>frank</code> (<code>%u</code>)</dt> <dd>ñ│ñ∞ñ╧ HTTP ╟º╛┌ñ╦ñΦñδíóÑ╔Ñ¡ÑσÑßÑ≤Ñ╚ñ≥ÑΩѻѿÑ╣Ñ╚ñ╖ñ┐┐═ñ╬ ѵí╝Ñ╢ ID ñ╟ñ╣íúCGI Ñ╣Ñ»ÑΩÑ╫Ñ╚ñ╦ñ╧─╠╛∩╞▒ñ╕├═ñ¼ <code>REMOTE_USER</code> ┤─╢¡╩╤┐⌠ñ╚ñ╖ñ╞═┐ñ¿ñΘñ∞ñ▐ñ╣íúÑΩѻѿÑ╣Ñ╚ñ╬Ñ╣Ñ╞í╝Ñ┐Ñ╣Ñ│í╝Ñ╔ (░╩▓╝ñ≥╗▓╛╚) ñ¼ 401 ñ╟ñóñ├ñ┐╛∞╣τñ╧íóѵí╝Ñ╢ñ╧╟º╛┌ñ╦╝║╟╘ñ╖ñ╞ñññδñ╬ñ╟íó ñ│ñ╬├═ñ╧┐«═╤ñ╟ñ¡ñ▐ñ╗ñ≤íúÑ╔Ñ¡ÑσÑßÑ≤Ñ╚ñ¼Ñ╤Ñ╣Ñ∩í╝Ñ╔ñ╟╩▌╕εñ╡ñ∞ñ╞ñññ╩ññ ╛∞╣τñ╧íóñ│ñ╬Ñ¿Ñ≤Ñ╚ÑΩñ╧┴░ñ╬ñΓñ╬ñ╚╞▒ñ╕ñΦñªñ╦ "<code>-</code>" ñ╦ ñ╩ñΩñ▐ñ╣íú</dd> <dt><code>[10/Oct/2000:13:55:36 -0700]</code> (<code>%t</code>)</dt> <dd> Ñ╡í╝Ñ╨ñ¼ÑΩѻѿÑ╣Ñ╚ñ≥╝⌡ñ▒╝Φñ├ñ┐╗■╣∩ñ╟ñ╣íú╜±╝░ñ╧: <p class="indent"> <code>[day/month/year:hour:minute:second zone]<br /> day = 2*digit<br /> month = 3*letter<br /> year = 4*digit<br /> hour = 2*digit<br /> minute = 2*digit<br /> second = 2*digit<br /> zone = (`+' | `-') 4*digit</code> </p> ÑφÑ░ñ╬Ñ╒Ñ⌐í╝Ñ▐Ñ├Ñ╚╩╕╗·╬≤ñ╦ <code>%{format}t</code> ñ≥ ╗╪─Ωñ╣ñδñ│ñ╚ñ╟íó╩╠ñ╬╖┴╝░ñ╟╗■╣∩ñ≥╔╜╝¿ñ╡ñ╗ñδñ│ñ╚ñΓñ╟ñ¡ñ▐ñ╣íú ñ│ñ╬ñ╚ñ¡íó<code>format</code> ñ╧ C ñ╬╔╕╜αÑΘÑñÑ╓ÑΘÑΩñ╬ <code>strftime(3)</code> ñ╬╖┴╝░ñ╦ñ╩ñΩñ▐ñ╣íú </dd> <dt><code>"GET /apache_pb.gif HTTP/1.0"</code> (<code>\"%r\"</code>)</dt> <dd>Ñ»ÑΘÑñÑóÑ≤Ñ╚ñ½ñΘñ╬ÑΩѻѿÑ╣Ñ╚ñ¼╞≤╜┼░·═╤╔Σñ╬├µñ╦╝¿ñ╡ñ∞ñ╞ñññ▐ñ╣íú ÑΩѻѿÑ╣Ñ╚ñ╦ñ╧┬┐ñ»ñ╬═¡═╤ñ╩╛≡╩≤ñ¼ñóñΩñ▐ñ╣íúñ▐ñ║íóñ│ñ╬╛∞╣τÑ»ÑΘÑñÑóÑ≤Ñ╚ñ¼ ╗╚ñ├ñ┐ÑßÑ╜Ñ├Ñ╔ñ╧ <code>GET</code> ñ╟ñ╣íú╝íñ╦íóÑ»ÑΘÑñÑóÑ≤Ñ╚ñ╧ ÑΩÑ╜í╝Ñ╣ <code>/apache_pb.gif</code> ñ≥═╫╡ßñ╖ñ▐ñ╖ñ┐íúñ╜ñ╖ñ╞íó Ñ»ÑΘÑñÑóÑ≤Ñ╚ñ╧Ñ╫ÑφÑ╚Ñ│Ñδ <code>HTTP/1.0</code> ñ≥╗╚═╤ñ╖ñ▐ñ╖ñ┐íú ÑΩѻѿÑ╣Ñ╚ñ╬│╞╔⌠╩¼ñ≥╞╚╬⌐ñ╦ÑφÑ░╝²╜╕ñ╣ñδñ│ñ╚ñΓñ╟ñ¡ñ▐ñ╣íú╬πñ¿ñ╨íó Ñ╒Ñ⌐í╝Ñ▐Ñ├Ñ╚╩╕╗·╬≤ "<code>%m %U%q %H</code>" ñ╧ ÑßÑ╜Ñ├Ñ╔íóÑ╤Ñ╣íóѻѿÑΩ╩╕╗·╬≤íóÑ╫ÑφÑ╚Ñ│Ñδñ≥ÑφÑ░╝²╜╕ñ╖íó ╖δ╢╔ "<code>%r</code>" ñ╚ñ▐ñ├ñ┐ñ»╞▒ñ╕╜╨╬╧ñ╦ñ╩ñΩñ▐ñ╣íú</dd> <dt><code>200</code> (<code>%>s</code>)</dt> <dd>Ñ╡í╝Ñ╨ñ¼Ñ»ÑΘÑñÑóÑ≤Ñ╚ñ╦┴≈ñΩ╩╓ñ╣Ñ╣Ñ╞í╝Ñ┐Ñ╣Ñ│í╝Ñ╔ñ╟ñ╣íú ñ│ñ╬╛≡╩≤ñ╧íóÑΩѻѿÑ╣Ñ╚ñ¼└«╕∙▒■┼· (2 ñ╟╗╧ñ▐ñδÑ│í╝Ñ╔) ñ╟ñóñ├ñ┐ñ½íó ÑΩÑ└ÑñÑ∞Ñ»Ñ╖ÑτÑ≤ (3 ñ╟╗╧ñ▐ñδÑ│í╝Ñ╔) ñ╟ñóñ├ñ┐ñ½íóÑ»ÑΘÑñÑóÑ≤Ñ╚ñ╦ñΦñδ Ñ¿ÑΘí╝ (4 ñ╟╗╧ñ▐ñδÑ│í╝Ñ╔) ñ╟ñóñ├ñ┐ñ½íóÑ╡í╝Ñ╨ñ╬Ñ¿ÑΘí╝ (5 ñ╟╗╧ñ▐ñδÑ│í╝Ñ╔) ñ╟ñóñ├ñ┐ñ½íóñ≥╕╜ñ╣ñ╬ñ╟íó╚≤╛∩ñ╦┬τ└┌ñ╟ñ╣íúÑ╣Ñ╞í╝Ñ┐Ñ╣Ñ│í╝Ñ╔ñ╬ ┤░┴┤ñ╩ÑΩÑ╣Ñ╚ñ╧ <a href="http://www.w3.org/Protocols/rfc2616/rfc2616.txt">HTTP ╡¼│╩</a> (RFC2616 ┬Φ 10 └ß) ñ╦ñóñΩñ▐ñ╣íú</dd> <dt><code>2326</code> (<code>%b</code>)</dt> <dd>ñ│ñ╬║╟╕σñ╬Ñ¿Ñ≤Ñ╚ÑΩñ╧Ñ»ÑΘÑñÑóÑ≤Ñ╚ñ╦┴≈┐«ñ╡ñ∞ñ┐ѬÑ╓Ñ╕ѺѻÑ╚ñ╬íó ▒■┼·Ñ╪Ñ├Ñ└ñ≥╜ⁿñññ┐Ñ╡ÑñÑ║ñ≥╕╜ñ╖ñ▐ñ╣íúÑ│Ñ≤Ñ╞Ñ≤Ñ╚ñ¼Ñ»ÑΘÑñÑóÑ≤Ñ╚ñ╦┴≈ñΘñ∞ñ╩ñ½ñ├ñ┐ ╛∞╣τñ╧íóñ│ñ╬├═ñ╧ "<code>-</code>" ñ╦ñ╩ñΩñ▐ñ╣íúÑ│Ñ≤Ñ╞Ñ≤Ñ╚ñ¼╠╡ññ╛∞╣τñ╦ "<code>0</code>" ñ≥ÑφÑ░╝²╜╕ñ╣ñδñ╦ñ╧íó<code>%b</code> ñ╟ñ╧ñ╩ñ» <code>%B</code> ñ≥╗╚ñ├ñ╞ñ»ñ└ñ╡ññíú</dd> </dl> <h3><a name="combined" id="combined">Combined Log Format</a></h3> <p>ñΓñª░∞ñ─ñ╬ñΦñ»╗╚ñ∩ñ∞ñδ╜±╝░ñ╧ Combined Log Format ñ╚╕╞ñ╨ñ∞ñ╞ñññ▐ñ╣íú ░╩▓╝ñ╬ñΦñªñ╦ñ╖ñ╞╗╚ñªñ│ñ╚ñ¼ñ╟ñ¡ñ▐ñ╣íú</p> <div class="example"><p><code> LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\"" combined<br /> CustomLog log/access_log combined </code></p></div> <p>ñ│ñ╬╜±╝░ñ╬║╟╜Θñ╬╩²ñ╧ Common Log Format ñ╚ñ▐ñ├ñ┐ñ»╞▒ñ╕ñ╟íó║╟╕σñ╦ ╞≤ñ──╔▓├ñ╬Ñ¿Ñ≤Ñ╚ÑΩñ¼ñóñΩñ▐ñ╣íú─╔▓├ñ╬Ñ¿Ñ≤Ñ╚ÑΩñ╧Ñ╤í╝Ñ╗Ñ≤Ñ╚Ñ╟ÑúÑ∞Ñ»Ñ╞ÑúÑ╓ <code>%{<em>header</em>}i</code> ñ≥╗╚ñ├ñ╞ñññ▐ñ╣íúñ│ñ│ñ╟ <em>header</em> ñ╧ HTTP ñ╬ÑΩѻѿÑ╣Ñ╚Ñ╪Ñ├Ñ└ñ╬ñ╔ñ∞ñ½ñ╟ñ╣íúñ│ñ╬╜±╝░ñ╦ñΦñδ ÑóÑ»Ñ╗Ñ╣ÑφÑ░ñ╧░╩▓╝ñ╬ñΦñªñ╩┤╢ñ╕ñ╦ñ╩ñΩñ▐ñ╣:</p> <div class="example"><p><code> 127.0.0.1 - frank [10/Oct/2000:13:55:36 -0700] "GET /apache_pb.gif HTTP/1.0" 200 2326 "http://www.example.com/start.html" "Mozilla/4.08 [en] (Win98; I ;Nav)" </code></p></div> <p>─╔▓├ñ╬Ñ¿Ñ≤Ñ╚ÑΩñ╧:</p> <dl> <dt><code>"http://www.example.com/start.html"</code> (<code>\"%{Referer}i\"</code>)</dt> <dd>"Referer" (░╒┐▐┼¬ñ╩─╓ñΩ┤╓░πññ) HTTP ÑΩѻѿÑ╣Ñ╚Ñ╪Ñ├Ñ└ñ╟ñ╣íú ñ│ñ∞ñ╧Ñ»ÑΘÑñÑóÑ≤Ñ╚ñ¼╩≤╣≡ñ╖ñ╞ñ»ñδ╗▓╛╚╕╡ñ╬Ñ╡ÑñÑ╚ñ≥╔╜ñ╖ñ▐ñ╣íú (ñ│ñ╬╛∞╣τñ╧íó<code>/apache_pb.gif</code> ñ╦ÑΩÑ≤Ñ»ñ╖ñ╞ñññδñ½íó ñ╜ñ∞ñ≥┤▐ñ≤ñ╟ñññδÑ┌í╝Ñ╕ñ╟ñ╣)íú</dd> <dt><code>"Mozilla/4.08 [en] (Win98; I ;Nav)"</code> (<code>\"%{User-agent}i\"</code>)</dt> <dd>User-Agent HTTP ÑΩѻѿÑ╣Ñ╚Ñ╪Ñ├Ñ└ñ╟ñ╣íúñ│ñ∞ñ╧Ñ»ÑΘÑñÑóÑ≤Ñ╚ñ╬Ñ╓ÑΘѪÑ╢ñ¼ ╝½╩¼╝½┐╚ñ╬ñ│ñ╚ñ≥╩≤╣≡ñ╖ñ╞ñ»ñδ╛≡╩≤ñ╟ñ╣íú</dd> </dl> <h3><a name="multiple" id="multiple">╩ú┐⌠ñ╬ÑóÑ»Ñ╗Ñ╣ÑφÑ░</a></h3> <p>╩ú┐⌠ñ╬ÑóÑ»Ñ╗Ñ╣ÑφÑ░ñ╧├▒ñ╦└▀─ΩÑ╒ÑíÑñÑδñ╦╩ú┐⌠ñ╬ <code class="directive"><a href="./mod/mod_log_config.html#customlog">CustomLog</a></code> Ñ╟ÑúÑ∞Ñ»Ñ╞ÑúÑ╓ñ≥╜±ñ»ñ│ñ╚ñ╟║ε└«ñ╡ñ∞ñ▐ñ╣íú╬πñ¿ñ╨íó░╩▓╝ñ╬Ñ╟ÑúÑ∞Ñ»Ñ╞ÑúÑ╓ñ╧ ╗░ñ─ñ╬ÑóÑ»Ñ╗Ñ╣ÑφÑ░ñ≥║εñΩñ▐ñ╣íú║╟╜Θñ╬ñΓñ╬ñ╧┤≡╦▄┼¬ñ╩ CLF ñ╬╛≡╩≤ñ╟íó ╞≤ñ─╠▄ñ╚╗░ñ─╠▄ñ╧ referer ñ╚Ñ╓ÑΘѪÑ╢ñ╬╛≡╩≤ñ╟ñ╣íú║╟╕σ╞≤ñ─ñ╬ <code class="directive"><a href="./mod/mod_log_config.html#customlog">CustomLog</a></code> ñ╧ <code>ReferLog</code> Ñ╟ÑúÑ∞Ñ»Ñ╞ÑúÑ╓ñ╚ <code>AgentLog</code> Ñ╟ÑúÑ∞Ñ»Ñ╞ÑúÑ╓ñ╬╕·▓╠ñ≥ñ▐ñ═ñδ╩²╦íñ≥╝¿ñ╖ñ╞ñññ▐ñ╣íú</p> <div class="example"><p><code> LogFormat "%h %l %u %t \"%r\" %>s %b" common<br /> CustomLog logs/access_log common<br /> CustomLog logs/referer_log "%{Referer}i -> %U"<br /> CustomLog logs/agent_log "%{User-agent}i" </code></p></div> <p>ñ│ñ╬╬πñ╧ <code class="directive"><a href="./mod/mod_log_config.html#logformat">LogFormat</a></code> ñ╟ Ñ╦Ñ├Ñ»Ñ═í╝Ñαñ≥─Ω╡┴ñ╣ñδ╔¼═╫ñ¼ñ╩ññíó ñ╚ñññªñ│ñ╚ñΓ╝¿ñ╖ñ╞ñññ▐ñ╣íúÑ╦Ñ├Ñ»Ñ═í╝Ñαñ╬┬σñ∩ñΩñ╦íó <code class="directive"><a href="./mod/mod_log_config.html#customlog">CustomLog</a></code> Ñ╟ÑúÑ∞Ñ»Ñ╞ÑúÑ╓ñ╦ ─╛└▄ÑφÑ░ñ╬╜±╝░ñ≥╗╪─Ωñ╣ñδñ│ñ╚ñ¼ñ╟ñ¡ñ▐ñ╣íú</p> <h3><a name="conditional" id="conditional">╛≥╖∩╔╒ñ¡ÑφÑ░</a></h3> <p>Ñ»ÑΘÑñÑóÑ≤Ñ╚ñ╬ÑΩѻѿÑ╣Ñ╚ñ╬╞├─ºñ╦┤≡ñ┼ñññ╞ÑóÑ»Ñ╗Ñ╣ÑφÑ░ñ╦Ñ¿Ñ≤Ñ╚ÑΩñ╬ ░∞╔⌠ñ≥ÑφÑ«Ñ≤Ñ░ñ╖ñ╩ññ╩²ñ¼╩╪═°ñ╩ñ│ñ╚ñ¼ñóñΩñ▐ñ╣íúñ│ñ∞ñ╧ <a href="env.html">┤─╢¡╩╤┐⌠</a> ñ╬╩Σ╜⌡ñ╦ñΦñΩ┤╩├▒ñ╦╝┬╕╜ñ╟ñ¡ñ▐ñ╣íúñ▐ñ║íó ÑΩѻѿÑ╣Ñ╚ñ¼▓┐ñΘñ½ñ╬╛≥╖∩ñ╦╣τñªñ╚ñññªñ│ñ╚ñ≥╕╜ñ╣ñ┐ñßñ╦┤─╢¡╩╤┐⌠ñ¼ └▀─Ωñ╡ñ∞ñδ╔¼═╫ñ¼ñóñΩñ▐ñ╣íúñ│ñ∞ñ╧─╠╛∩ñ╧ <code class="directive"><a href="./mod/mod_setenvif.html#setenvif">SetEnvIf</a></code> ñ╦ñΦñΩ ╣╘ñ╩ñ∩ñ∞ñ▐ñ╣íúñ╜ñ╖ñ╞íó<code class="directive"><a href="./mod/mod_log_config.html#customlog">CustomLog</a></code> Ñ╟ÑúÑ∞Ñ»Ñ╞ÑúÑ╓ñ╬ <code>env=</code> └ßñ≥╗╚ñ├ñ╞┤─╢¡╩╤┐⌠ñ¼└▀─Ωñ╡ñ∞ñ╞ñññδÑΩѻѿÑ╣Ñ╚ñ≥ ┤▐ñßñ┐ñΩ╟╙╜ⁿñ╖ñ┐ñΩñ╣ñδñ│ñ╚ñ¼ñ╟ñ¡ñ▐ñ╣íúñññ»ñ─ñ½╬πñ≥╡≤ñ▓ñ▐ñ╣:</p> <div class="example"><p><code> # Mark requests from the loop-back interface<br /> SetEnvIf Remote_Addr "127\.0\.0\.1" dontlog<br /> # Mark requests for the robots.txt file<br /> SetEnvIf Request_URI "^/robots\.txt$" dontlog<br /> # Log what remains<br /> CustomLog logs/access_log common env=!dontlog </code></p></div> <p>┬╛ñ╬╬πñ╚ñ╖ñ╞íó▒╤╕∞ñ≥╧├ñ╣┐═ñ½ñΘñ╬ÑΩѻѿÑ╣Ñ╚ñ╚ñ╜ñ∞░╩│░ñ╬┐═ñ½ñΘñ╬ÑΩѻѿÑ╣Ñ╚ñ≥ ╩¼ñ▒ñ┐ññíóñ╚ñññª╛∞╣τñ≥╣═ñ¿ñ╞ñ▀ñ╞ñ»ñ└ñ╡ññíú</p> <div class="example"><p><code> SetEnvIf Accept-Language "en" english<br /> CustomLog logs/english_log common env=english<br /> CustomLog logs/non_english_log common env=!english </code></p></div> <p>ñ│ñ│ñ▐ñ╟ñ╟ñ╧╛≥╖∩╔╒ñ¡ÑφÑ«Ñ≤Ñ░ñ¼╚≤╛∩ñ╦╢»╬╧ñ╟╜└╞≡ñ╟ñóñδñ│ñ╚ñ≥╝¿ñ╖ñ╞ñ¡ñ▐ñ╖ñ┐ñ¼íó ñ╜ñ∞ñ¼ÑφÑ░ñ╬╞Γ═╞ñ≥└⌐╕µñ╣ñδ═ú░∞ñ╬╩²╦íñ╚ñññªñ∩ñ▒ñ╟ñ╧ñóñΩñ▐ñ╗ñ≤íúÑφÑ░Ñ╒ÑíÑñÑδñ╧ Ñ╡í╝Ñ╨ñ╬│Φ╞░ñ╬┤░┴┤ñ╩╡¡╧┐ñ╟ñóñδ╩²ñ¼ñΦñΩ╠≥ñ╦╬⌐ñ┴ñ▐ñ╣íú├▒╜πñ╦ÑφÑ░Ñ╒ÑíÑñÑδñ≥ ╕σ╜Φ═²ñ╖ñ╞íó╣═╬╕ñ╖ñ┐ñ»ñ╩ññÑφÑ░ñ≥║∩╜ⁿñ╣ñδ╩²ñ¼┤╩├▒ñ╟ñóñδñ│ñ╚ñ¼ñΦñ»ñóñΩñ▐ñ╣íú</p> </div><div class="top"><a href="#page-header"><img alt="top" src="./images/up.gif" /></a></div> <div class="section"> <h2><a name="rotation" id="rotation">ÑφÑ░ñ╬╕≥┬╪</a></h2> <p>╔ß─╠ñ╬╔Θ▓┘ñ╬Ñ╡í╝Ñ╨ñ╟ñ╡ñ¿íóÑφÑ░Ñ╒ÑíÑñÑδñ╦╩▌┬╕ñ╡ñ∞ñδ╛≡╩≤ñ╬╬╠ñ╧ ╦─┬τñ╦ñ╩ñΩñ▐ñ╣íúÑóÑ»Ñ╗Ñ╣ÑφÑ░ñ╬Ñ╒ÑíÑñÑδñ╧╔ß─╠ 10,000 ÑΩѻѿÑ╣Ñ╚╦Φñ╦ 1 MB ░╩╛σ┴²ñ¿ñ▐ñ╣íúñ╟ñ╣ñ½ñΘíó┤√┬╕ñ╬ÑφÑ░ñ≥░▄╞░ñ╖ñ┐ñΩíó║∩╜ⁿñ╖ñ┐ñΩñ╖ñ╞íó ─Ω┤ⁿ┼¬ñ╦ÑφÑ░ñ≥╕≥┬╪ñ╡ñ╗ñδñ│ñ╚ñ¼╔¼═╫ñ╦ñ╩ñΩñ▐ñ╣íúñ│ñ∞ñ╧Ñ╡í╝Ñ╨ñ╬╝┬╣╘├µñ╦ñ╧ ╣╘ñ╩ñ¿ñ▐ñ╗ñ≤íúñ╚ñññªñ╬ñ╧íóApache ñ╧Ñ╒ÑíÑñÑδñ¼ open ñ╡ñ∞ñ╞ñññδ┤╓ñ╧ ñ║ñ├ñ╚╕┼ññÑφÑ░Ñ╒ÑíÑñÑδñ╦╜±ñ¡┬│ñ▒ñδñ½ñΘñ╟ñ╣íú ┐╖ñ╖ññÑφÑ░Ñ╒ÑíÑñÑδñ≥ open ñ╟ñ¡ñδñΦñªñ╦íóÑφÑ░Ñ╒ÑíÑñÑδñ¼░▄╞░ñ╡ñ∞ñ┐ñΩ ║∩╜ⁿñ╡ñ∞ñ┐╕σñ╦íóÑ╡í╝Ñ╨ñ≥<a href="stopping.html">║╞╡»╞░</a>ñ╣ñδ ╔¼═╫ñ¼ñóñΩñ▐ñ╣íú</p> <p><em>═Ñ▓φñ╩</em> ║╞╡»╞░ñ≥╣╘ñ╩ñªñ│ñ╚ñ╟íóÑ╡í╝Ñ╨ñ╧┤√┬╕ñ╬Ñ│Ñ═Ñ»Ñ╖ÑτÑ≤ñΣ ╜Φ═²┬╘ñ┴ñ╬Ñ│Ñ═Ñ»Ñ╖ÑτÑ≤ñ≥╝║ñªñ│ñ╚ñ╩ñ»┐╖ñ╖ññÑφÑ░Ñ╒ÑíÑñÑδñ≥ open ñ╡ñ╗ñδ ñ│ñ╚ñ¼ñ╟ñ¡ñ▐ñ╣íúñ╖ñ½ñ╖íóñ│ñ∞ñ≥╝┬╕╜ñ╣ñδñ┐ñßñ╦íóÑ╡í╝Ñ╨ñ╧╕┼ññÑΩѻѿÑ╣Ñ╚ñ≥ ░╖ñ├ñ╞ñññδ┤╓ñ╧╕┼ññÑφÑ░Ñ╒ÑíÑñÑδñ╦╜±ñ¡┬│ñ▒ñδ╔¼═╫ñ¼ñóñΩñ▐ñ╣íú ñ╟ñ╣ñ½ñΘíó║╞╡»╞░ñ╬╕σñ╟ñ╧ÑφÑ░Ñ╒ÑíÑñÑδñ╬╜Φ═²ñ≥╗╧ñßñδ┴░ñ╦íóñ╖ñ╨ñΘñ»┬╘ñ┐ñ╩ñ▒ñ∞ñ╨ ñ╩ñΩñ▐ñ╗ñ≤íú├▒ñ╦ÑφÑ░ñ≥╕≥┬╪ñ╡ñ╗ñ╞íóÑ╟ÑúÑ╣Ñ»ñ╬└ß╠≤ñ╬ñ┐ñßñ╦╕┼ññÑφÑ░ñ≥ ░╡╜╠ñ╣ñδ╔ß─╠ñ╬Ñ╖Ñ╩ÑΩѬñ╧:</p> <div class="example"><p><code> mv access_log access_log.old<br /> mv error_log error_log.old<br /> apachectl graceful<br /> sleep 600<br /> gzip access_log.old error_log.old </code></p></div> <p>ÑφÑ░ñ╬╕≥┬╪ñ≥ñ╣ñδñΓñª░∞ñ─ñ╬╩²╦íñ╧<a href="#piped">Ñ╤ÑñÑ╫╖╨═│ñ╬ÑφÑ░</a>ñ≥╗╚ñªñΓñ╬ñ╟íó╝íñ╬└ßñ╟└Γ╠└ñ╡ñ∞ñ╞ñññ▐ñ╣íú</p> </div><div class="top"><a href="#page-header"><img alt="top" src="./images/up.gif" /></a></div> <div class="section"> <h2><a name="piped" id="piped">Ñ╤ÑñÑ╫╖╨═│ñ╬ÑφÑ░</a></h2> <p>Apache httpd ñ╧Ñ¿ÑΘí╝ÑφÑ░ñ╚ÑóÑ»Ñ╗Ñ╣ÑφÑ░ñ≥Ñ╒ÑíÑñÑδñ╦─╛└▄╜±ñ»┬σñ∩ñΩñ╦íó Ñ╤ÑñÑ╫ñ≥─╠ñ╖ñ╞╩╠ñ╬Ñ╫ÑφÑ░ÑΘÑαñ╦╜±ñ¡╜╨ñ╣ñ│ñ╚ñ¼ñ╟ñ¡ñ▐ñ╣íú ñ│ñ╬╡í╟╜ñ╦ñΦñΩíó╝τÑ╡í╝Ñ╨ñ╦Ñ│í╝Ñ╔ñ≥─╔▓├ñ╣ñδñ│ñ╚ñ╩ñ» ÑφÑ«Ñ≤Ñ░ñ╬╜└╞≡└¡ñ¼╚≤╛∩ñ╦╣Γñ▐ñ├ñ╞ñññ▐ñ╣íúÑ╤ÑñÑ╫ñ╦ÑφÑ░ñ≥╜±ñ»ñ┐ñßñ╦ñ╧íó ├▒ñ╦Ñ╒ÑíÑñÑδ╠╛ñ≥Ñ╤ÑñÑ╫╩╕╗· "<code>|</code>" ñ╦├╓ñ¡┤╣ñ¿íóñ╜ñ╬┬│ñ¡ñ╦ ╔╕╜α╞■╬╧ñ½ñΘÑφÑ░ñ╬Ñ¿Ñ≤Ñ╚ÑΩñ≥╝⌡ñ▒ñ╚ñδ╝┬╣╘Ñ╫ÑφÑ░ÑΘÑαñ╬╠╛┴░ñ≥╜±ñ»ñ└ñ▒ñ╟ñ╣íú Apache ñ╧Ñ╤ÑñÑ╫╖╨═│ñ╬ÑφÑ░═╤ñ╬Ñ╫ÑφÑ╗Ñ╣ñ≥Ñ╡í╝Ñ╨ñ╬╡»╞░╗■ñ╦╝┬╣╘ñ╖íó Ñ╡í╝Ñ╨ñ╬╝┬╣╘├µñ╦ñ╜ñ╬Ñ╫ÑφÑ░ÑΘÑαñ¼Ñ»ÑΘÑ├Ñ╖Ñσñ╖ñ┐ñ╚ñ¡ñ╧ñ╜ñ∞ñ≥║╞ñ╙ ╝┬╣╘ñ╖ñ▐ñ╣íú(ñ│ñ╬║╟╕σñ╬╡í╟╜ñ¼ñ│ñ╬╡╗╜╤ñ¼í╓┐«═Ω└¡ñ╬ñóñδÑ╤ÑñÑ╫╖╨═│ñ╬ÑφÑ«Ñ≤Ñ░í╫ ñ╚╕╞ñ╨ñ∞ñ╞ñññδ═²═│ñ╟ñ╣íú)</p> <p>Ñ╤ÑñÑ╫╖╨═│ñ╬ÑφÑ░═╤ñ╬Ñ╫ÑφÑ╗Ñ╣ñ╧ Apache httpd ñ╬┐╞Ñ╫ÑφÑ╗Ñ╣ñ½ñΘ╡»╞░ñ╡ñ∞íó ñ╜ñ╬Ñ╫ÑφÑ╗Ñ╣ñ╬ѵí╝Ñ╢ ID ñ≥╖╤╛╡ñ╖ñ▐ñ╣íúñ│ñ∞ñ╧íóñ│ñ∞ñ╧íóÑ╤ÑñÑ╫╖╨═│ñ╬ÑφÑ░═╤ñ╬ Ñ╫ÑφÑ░ÑΘÑαñ╧╔ß─╠ root ñ╚ñ╖ñ╞╝┬╣╘ñ╡ñ∞ñδñ│ñ╚ñ≥░╒╠úñ╖ñ▐ñ╣íú ñ╟ñ╣ñ½ñΘíóÑ╫ÑφÑ░ÑΘÑαñ≥┤╩├▒ñ╟░┬┴┤ñ╦╩▌ñ─ñ│ñ╚ñ¼╚≤╛∩ñ╦╜┼═╫ñ╟ñ╣íú</p> <p>Ñ╤ÑñÑ╫╖╨═│ñ╬ÑφÑ░ñ╬╜┼═╫ñ╩═°═╤╦íñ╧íóÑ╡í╝Ñ╨ñ╬║╞╡»╞░ñ╩ñ╖ñ╟ÑφÑ░ñ╬╕≥┬╪ñ≥ ñ╣ñδñ│ñ╚ñ╟ñ╣íúApache HTTP Ñ╡í╝Ñ╨ñ╦ñ╧ñ│ñ╬ñ┐ñßñ╬ <code class="program"><a href="./programs/rotatelogs.html">rotatelogs</a></code> ñ╚╕╞ñ╨ñ∞ñδ┤╩├▒ñ╩ Ñ╫ÑφÑ░ÑΘÑαñ¼╔╒┬░ñ╖ñ╞ñññ▐ñ╣íúñ┐ñ╚ñ¿ñ╨íó24 ╗■┤╓╦Φñ╦ÑφÑ░ñ≥╕≥┬╪ñ╡ñ╗ñδñ╦ñ╧íó ░╩▓╝ñ╬ñΓñ╬ñ≥╗╚ñªñ│ñ╚ñ¼ñ╟ñ¡ñ▐ñ╣:</p> <div class="example"><p><code> CustomLog "|/usr/local/apache/bin/rotatelogs /var/log/access_log 86400" common </code></p></div> <p>Ñ╤ÑñÑ╫ñ╬└Φñ╟╕╞ñ╨ñ∞ñδÑ│Ñ▐Ñ≤Ñ╔┴┤┬╬ñ¼░·═╤╔Σñ╟░╧ñ▐ñ∞ñ╞ñññδñ│ñ╚ñ╦├φ╠▄ñ╖ñ╞ ñ»ñ└ñ╡ññíúñ│ñ╬╬πñ╧ÑóÑ»Ñ╗Ñ╣ÑφÑ░ñ≥╗╚ñ├ñ╞ñññ▐ñ╣ñ¼íóÑ¿ÑΘí╝ÑφÑ░ñ╦ñΓ╞▒ñ╕╡╗╜╤ñ≥ ╗╚ñªñ│ñ╚ñ¼ñ╟ñ¡ñ▐ñ╣íú</p> <p>╗≈ñ╞ñññδñ▒ñ∞ñ╔íóñΦñΩñ║ñ├ñ╚╜└╞≡ñ╩ <a href="http://www.cronolog.org/">cronolog</a> ñ╚ñññªÑφÑ░╕≥┬╪═╤ñ╬ Ñ╫ÑφÑ░ÑΘÑαñ¼│░╔⌠ñ╬Ñ╡ÑñÑ╚ñ╦ñóñΩñ▐ñ╣íú</p> <p>╛≥╖∩╔╒ñ¡ÑφÑ«Ñ≤Ñ░ñ╚╞▒══íóÑ╤ÑñÑ╫╖╨═│ñ╬ÑφÑ░ñ╧╚≤╛∩ñ╦╢»╬╧ñ╩ ╞╗╢±ñ╟ñ╣ñ¼íóѬÑ╒ÑΘÑñÑ≤ñ╬╕σ╜Φ═²ñ╬ñΦñªñ╩íóñΦñΩ┤╩├▒ñ╩▓≥╖Φ╩²╦íñ¼ñóñδñ╚ñ¡ñ╧ ╗╚ñ∩ñ╩ññ╩²ñ¼╬╔ñññ╟ñ╖ñτñªíú</p> </div><div class="top"><a href="#page-header"><img alt="top" src="./images/up.gif" /></a></div> <div class="section"> <h2><a name="virtualhosts" id="virtualhosts">Ñ╨í╝Ñ┴ÑπÑδÑ█Ñ╣Ñ╚</a></h2> <p>┬┐ñ»ñ╬ <a href="vhosts/">Ñ╨í╝Ñ┴ÑπÑδÑ█Ñ╣Ñ╚</a> ñ╬ñóñδÑ╡í╝Ñ╨ñ≥╝┬╣╘ñ╖ñ╞ñññδ ñ╚ñ¡ñ╧íóÑφÑ░Ñ╒ÑíÑñÑδñ╬░╖ññ╩²ñ╦ñññ»ñ─ñ½ñ╬╩²╦íñ¼ñóñΩñ▐ñ╣íú ñ▐ñ║íó├▒╞╚ñ╬Ñ█Ñ╣Ñ╚ñ╬ñ▀ñ╬Ñ╡í╝Ñ╨ñ╚ñ▐ñ├ñ┐ñ»╞▒ñ╕ñΦñªñ╦ÑφÑ░ñ≥╗╚ñªñ│ñ╚ñ¼ñ╟ñ¡ñ▐ñ╣íú ÑφÑ«Ñ≤Ñ░Ñ╟ÑúÑ∞Ñ»Ñ╞ÑúÑ╓ñ≥╝τÑ╡í╝Ñ╨ñ╬Ñ│Ñ≤Ñ╞Ñ¡Ñ╣Ñ╚ñ╬ <code class="directive"><a href="./mod/core.html#virtualhost"><VirtualHost></a></code> Ñ╗Ñ»Ñ╖ÑτÑ≤ñ╬│░ñ╦├╓ñ»ñ│ñ╚ñ╟íó ñ╣ñ┘ñ╞ñ╬ÑφÑ░ñ≥╞▒ñ╕ÑóÑ»Ñ╗Ñ╣ÑφÑ░ñ╚Ñ¿ÑΘí╝ÑφÑ░ñ╦ÑφÑ░╝²╜╕ñ╣ñδñ│ñ╚ñ¼ñ╟ñ¡ñ▐ñ╣íú ñ│ñ╬╝Ω╦íñ╟ñ╧╕─í╣ñ╬Ñ╨í╝Ñ┴ÑπÑδÑ█Ñ╣Ñ╚ñ╬┼²╖╫ñ≥┤╩├▒ñ╦ñ╚ñδñ│ñ╚ñ╧ñ╟ñ¡ñ▐ñ╗ñ≤íú</p> <p><code class="directive"><a href="./mod/mod_log_config.html#>customlog">>CustomLog</a></code> ñΣ <code class="directive"><a href="./mod/mod_log_config.html#errorlog">ErrorLog</a></code> Ñ╟ÑúÑ∞Ñ»Ñ╞ÑúÑ╓ñ¼ <code class="directive"><a href="./mod/core.html#virtualhost"><VirtualHost></a></code> ñ╬├µñ╦ ├╓ñ½ñ∞ñ┐╛∞╣τñ╧íóñ╜ñ╬Ñ╨í╝Ñ┴ÑπÑδ Ñ█Ñ╣Ñ╚ñ╪ñ╬ñ╣ñ┘ñ╞ñ╬ÑΩѻѿÑ╣Ñ╚ñΣÑ¿ÑΘí╝ñ¼ñ╜ñ│ñ╟╗╪─Ωñ╡ñ∞ñ┐Ñ╒ÑíÑñÑδñ╦ñ╬ñ▀ ÑφÑ░╝²╜╕ñ╡ñ∞ñ▐ñ╣íúÑφÑ«Ñ≤Ñ░Ñ╟ÑúÑ∞Ñ»Ñ╞ÑúÑ╓ñ╬ñ╩ññÑ╨í╝Ñ┴ÑπÑδÑ█Ñ╣Ñ╚ñ╧ ░═┴│ñ╚ñ╖ñ╞ÑΩѻѿÑ╣Ñ╚ñ¼╝τÑ╡í╝Ñ╨ñ╬ÑφÑ░ñ╦┴≈ñΘñ∞ñ▐ñ╣íúñ│ñ╬╝Ω╦íñ╧╛»ñ╩ññ Ñ╨í╝Ñ┴ÑπÑδÑ█Ñ╣Ñ╚ñ╦┬╨ñ╖ñ╞ñ╧╚≤╛∩ñ╦═¡═╤ñ╟ñ╣ñ¼íóÑ█Ñ╣Ñ╚ñ╬┐⌠ñ¼╚≤╛∩ñ╦┬┐ñ»ñ╩ñδñ╚ ┤╔═²ñ¼┬τ╩╤ñ╦ñ╩ñΩñ▐ñ╣íúñ╡ñΘñ╦íó<a href="vhosts/fd-limits.html">Ñ╒ÑíÑñÑδ╡¡╜╥╗╥ñ╬╕┬│ª</a>ñ╬╠Σ┬Ωñ≥╡»ñ│ñ╣ñ│ñ╚ñ¼ ñóñΩñ▐ñ╣íú</p> <p>ÑóÑ»Ñ╗Ñ╣ÑφÑ░ñ╦ñ╧íó╚≤╛∩ñ╦╬╔ññ┬┼╢¿░╞ñ¼ñóñΩñ▐ñ╣íúÑ╨í╝Ñ┴ÑπÑδÑ█Ñ╣Ñ╚ñ╬ ╛≡╩≤ñ≥ÑφÑ░ñ╬Ñ╒Ñ⌐í╝Ñ▐Ñ├Ñ╚╩╕╗·╬≤ñ╦▓├ñ¿ñδñ│ñ╚ñ╟íóñ╣ñ┘ñ╞ñ╬Ñ█Ñ╣Ñ╚ñ╪ñ╬ ÑΩѻѿÑ╣Ñ╚ñ≥╞▒ñ╕ÑφÑ░ñ╦ÑφÑ░╝²╜╕ñ╖ñ╞íó╕σñ╟ÑφÑ░ñ≥╕─í╣ñ╬Ñ╒ÑíÑñÑδñ╦╩¼│Σñ╣ñδñ│ñ╚ñ¼ ñ╟ñ¡ñ▐ñ╣íúñ┐ñ╚ñ¿ñ╨íó░╩▓╝ñ╬Ñ╟ÑúÑ∞Ñ»Ñ╞ÑúÑ╓ñ≥╕½ñ╞ñ»ñ└ñ╡ññíú</p> <div class="example"><p><code> LogFormat "%v %l %u %t \"%r\" %>s %b" comonvhost<br /> CustomLog logs/access_log comonvhost </code></p></div> <p><code>%v</code> ñ¼ÑΩѻѿÑ╣Ñ╚ñ≥░╖ñ├ñ╞ñññδÑ╨í╝Ñ┴ÑπÑδÑ█Ñ╣Ñ╚ñ╬╠╛┴░ñ≥ ÑφÑ░╝²╜╕ñ╣ñδñ┐ñßñ╦╗╚ñ∩ñ∞ñ╞ñññ▐ñ╣íúñ╜ñ╖ñ╞íó<a href="programs/other.html">split-logfile</a> ñ╬ñΦñªñ╩Ñ╫ÑφÑ░ÑΘÑαñ≥ ╗╚ñ├ñ╞ÑóÑ»Ñ╗Ñ╣ÑφÑ░ñ≥╕σ╜Φ═²ñ╣ñδñ│ñ╚ñ╟íó Ñ╨í╝Ñ┴ÑπÑδÑ█Ñ╣Ñ╚╦Φñ╬Ñ╒ÑíÑñÑδñ╦ÑφÑ░ñ≥╩¼│Σñ╣ñδñ│ñ╚ñ¼ñ╟ñ¡ñ▐ñ╣íú</p> <p>╗─╟░ñ╩ñ¼ñΘíóÑ¿ÑΘí╝ÑφÑ░ñ╦ñ╧╞▒══ñ╬╝Ω╦íñ╧ñóñΩñ▐ñ╗ñ≤íúñ╟ñ╣ñ½ñΘíó ñ╣ñ┘ñ╞ñ╬Ñ╨í╝Ñ┴ÑπÑδÑ█Ñ╣Ñ╚ñ≥╞▒ñ╕Ñ¿ÑΘí╝ÑφÑ░ñ╬├µñ╦║«ñ╝ñδñ½íó Ñ╨í╝Ñ┴ÑπÑδÑ█Ñ╣Ñ╚╦Φñ╦Ñ¿ÑΘí╝ÑφÑ░ñ≥╗╚ñªñ½ñ≥┴¬ñ╨ñ╩ñ▒ñ∞ñ╨ñ╩ñΩñ▐ñ╗ñ≤íú</p> </div><div class="top"><a href="#page-header"><img alt="top" src="./images/up.gif" /></a></div> <div class="section"> <h2><a name="other" id="other">┬╛ñ╬ÑφÑ░Ñ╒ÑíÑñÑδ</a></h2> <table class="related"><tr><th>┤╪╧óÑΓÑ╕Ñσí╝Ñδ</th><th>┤╪╧óÑ╟ÑúÑ∞Ñ»Ñ╞ÑúÑ╓</th></tr><tr><td><ul><li><code class="module"><a href="./mod/mod_cgi.html">mod_cgi</a></code></li><li><code class="module"><a href="./mod/mod_rewrite.html">mod_rewrite</a></code></li></ul></td><td><ul><li><code class="directive"><a href="./mod/mpm_common.html#pidfile">PidFile</a></code></li><li><code class="directive"><a href="./mod/mod_rewrite.html#rewritelog">RewriteLog</a></code></li><li><code class="directive"><a href="./mod/mod_rewrite.html#rewriteloglevel">RewriteLogLevel</a></code></li><li><code class="directive"><a href="./mod/mod_cgi.html#scriptlog">ScriptLog</a></code></li><li><code class="directive"><a href="./mod/mod_cgi.html#scriptlogbuffer">ScriptLogBuffer</a></code></li><li><code class="directive"><a href="./mod/mod_cgi.html#scriptloglength">ScriptLogLength</a></code></li></ul></td></tr></table> <h3><a name="pidfile" id="pidfile">PID Ñ╒ÑíÑñÑδ</a></h3> <p>╡»╞░╗■ñ╦íóApache ñ╧┐╞ httpd Ñ╫ÑφÑ╗Ñ╣ñ╬Ñ╫ÑφÑ╗Ñ╣ ID ñ≥ <code>logs/httpd.pid</code> ñ╦╩▌┬╕ñ╖ñ▐ñ╣íúñ│ñ╬ Ñ╒ÑíÑñÑδ╠╛ñ╧ <code class="directive"><a href="./mod/mpm_common.html#pidfile">PidFile</a></code> Ñ╟ÑúÑ∞Ñ»Ñ╞ÑúÑ╓ñ≥╗╚ñ├ñ╞ ╩╤╣╣ñ╣ñδñ│ñ╚ñ¼ñ╟ñ¡ñ▐ñ╣íúÑ╫ÑφÑ╗Ñ╣ ID ñ╧┤╔═²╝╘ñ¼┐╞Ñ╫ÑφÑ╗Ñ╣ñ╦ Ñ╖Ñ░Ñ╩Ñδñ≥┴≈ñδñ│ñ╚ñ╟Ñ╟í╝ÑΓÑ≤ñ≥║╞╡»╞░ñ╖ñ┐ñΩ╜¬╬╗ñ╡ñ╗ñ┐ñΩñ╣ñδñ╚ñ¡ñ╦ ╗╚═╤ñ╖ñ▐ñ╣íúWindows ñ╟ñ╧íó┬σñ∩ñΩñ╦ -k Ñ│Ñ▐Ñ≤Ñ╔ѬÑ╫Ñ╖ÑτÑ≤ñ≥ ╗╚ñ├ñ╞ñ»ñ└ñ╡ññíú╛▄ñ╖ññ╛≡╩≤ñ╧ <a href="stopping.html">╜¬╬╗ñ╚ ║╞╡»╞░</a> ñ╬Ñ┌í╝Ñ╕ñ≥╕½ñ╞ñ»ñ└ñ╡ññíú</p> <h3><a name="scriptlog" id="scriptlog">Ñ╣Ñ»ÑΩÑ╫Ñ╚ÑφÑ░</a></h3> <p>Ñ╟Ñ╨Ñ├Ñ░ñ╬╩Σ╜⌡ñ╬ñ┐ñßñ╦íó<code class="directive"><a href="./mod/mod_cgi.html#scriptlog">ScriptLog</a></code> Ñ╟ÑúÑ∞Ñ»Ñ╞ÑúÑ╓ñ╧ CGI Ñ╣Ñ»ÑΩÑ╫Ñ╚ñ╬╞■╬╧ñ╚╜╨╬╧ñ≥╡¡╧┐ñ╣ñδñΦñªñ╦ñ╟ñ¡ñ▐ñ╣íú ñ│ñ∞ñ╧Ñ╞Ñ╣Ñ╚═╤ñ╦ñ╬ñ▀╗╚═╤ñ╖ñ╞íó─╠╛∩ñ╬Ñ╡í╝Ñ╨ñ╟ñ╧╗╚═╤ñ╖ñ╩ñññ╟ñ»ñ└ñ╡ññíú ╛▄ñ╖ññ╛≡╩≤ñ╧ <a href="mod/mod_cgi.html">mod_cgi ñ╬╩╕╜±</a> ñ╦ñóñΩñ▐ñ╣íú</p> <h3><a name="rewritelog" id="rewritelog">ÑΩÑΘÑñÑ╚ÑφÑ░</a></h3> <p><code class="directive"><a href="./mod/mod_rewrite.html#mod_rewrite">mod_rewrite</a></code> ñ╬╢»╬╧ñ╟ ╩ú╗¿ñ╩╡í╟╜ñ≥ ╗╚ñ├ñ╞ñññδñ╚ñ¡ñ╧íóñ█ñ▄ñññ─ñΓÑ╟Ñ╨Ñ├Ñ░ñ≥┤╩├▒ñ╦ñ╣ñδñ┐ñßñ╦ <code class="directive"><a href="./mod/mod_rewrite.html#rewritelog">RewriteLog</a></code> ñ╬╗╚═╤ñ¼ ╔¼═╫ñ╟ñ╖ñτñªíúñ│ñ╬ÑφÑ░Ñ╒ÑíÑñÑδñ╦ñ╧ÑΩÑΘÑñÑ╚Ñ¿Ñ≤Ñ╕Ñ≤ñ¼ÑΩѻѿÑ╣Ñ╚ñ≥ ╜±ñ¡┤╣ñ¿ñδ╩²╦íñ╬╛▄║┘ñ╩▓≥└╧ñ¼╜╨╬╧ñ╡ñ∞ñ▐ñ╣íú╛▄ñ╖ñ╡ñ╬┼┘╣τñ╧ <code class="directive"><a href="./mod/mod_rewrite.html#rewriteloglevel">RewriteLogLevel</a></code> ñ╟└⌐╕µñ╟ñ¡ñ▐ñ╣íú</p> </div></div> <div class="bottomlang"> <p><span>Available Languages: </span><a href="./en/logs.html" hreflang="en" rel="alternate" title="English"> en </a> | <a href="./ja/logs.html" title="Japanese"> ja </a> | <a href="./ko/logs.html" hreflang="ko" rel="alternate" title="Korean"> ko </a></p> </div><div id="footer"> <p class="apache">Copyright 1995-2006 The Apache Software Foundation or its licensors, as applicable.<br />Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</p> <p class="menu"><a href="./mod/">ÑΓÑ╕Ñσí╝Ñδ</a> | <a href="./mod/directives.html">Ñ╟ÑúÑ∞Ñ»Ñ╞ÑúÑ╓</a> | <a href="./faq/">FAQ</a> | <a href="./glossary.html">═╤╕∞</a> | <a href="./sitemap.html">Ñ╡ÑñÑ╚Ñ▐Ñ├Ñ╫</a></p></div> </body></html>